//封装和userName相关的方法 存 取 删

const userName = 'user'

function setuserName(name){
    localStorage.setItem(userName,name)
}

function getuserName(){
   return localStorage.getItem(userName)
}

function removeuserName(){
    localStorage.removeItem(userName)
}

export {setuserName,getuserName,removeuserName}